Dir.glob: fix passing non-strings