Fix local patch when only one patch|diff exists

When there is only one file, we need to clean the output from svn status the same way we clean it for when there are multiple files.

Adds a test for how filenames are cleaned.

Thanks @nacin for the report