accept spaces in local filenames / directoies
Add missing "newline" at end of output
Merge pull request #1 from SvenRoederer/master

please accept this small patches for improved output and handling of spaces in filename