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#[]).

Closes #347 .