move pathRelativeTo from FilePath to ModuleContext