loop over arrays/globs instead of parsing LS

http://mywiki.wooledge.org/ParsingLs
Merge branch 'parsing-ls-fix'
Merge pull request #4 from sente/master

parsing-ls-fix