Fixed issues in the function that finds the system-path of the module to refactor (#2405575).
Initial release.