make checking of module path extensions in make_module_dep symlink-safe