fix for filenames containing whitespace