Bug fix when processing plain filenames.