refactoring path/module lookup to allow absolute paths