fixed bug with filenames containing a space