Prioritize path_extension in which method
Merge pull request #2 from chiiph/feature/improve_which

Prioritize path_extension in which method