catch npe when trying to use a relative path import
fix hyphenated modules not being picked up by case insensitive search