Added whitespace safeguards, simplified path

Doesn't this result in something like

    for file in "/foo/bar /foo/baz"

which results in _one_ iteration with `"/foo/bar /foo/baz"` as argument?