do not iterate over ls output where possible + protection on 'name with dashes becoming options'