do not iterate over ls output where possible + protection on 'name with dashes becoming options'
Merge pull request #43 from nonas/master

do not iterate over ls output where possible