Fixed last commit

Fixed last commit. Which consisted in removing trailing spaces in filenames, as they are not supported in FAT filesystem.