Fixing list to work with filenames with spaces