Don't pass Windows paths to Dir#glob.

Instead of using File.join, a Dir.chdir followed by a Dir#glob can do the same
thing on Unix and will avoid there ever being backslash-separated paths being
passed to Dir#glob (aliased as Dir#[]).
Merge pull request #368 from ucarion/better-mm-resolver

Don't pass Windows paths to Dir#glob.