in reply to Directory of PM file

You may find useful Re^2: finding the absolute path to a module, from the module's, perspective.