fix import location finding and windows path munging