Merge pull request #43 from nonas/master

do not iterate over ls output where possible