Scope vars
Ignore nil extnames
Avoid pathname
Environment resolve returns a string path instead of a pathname