Fix for filenames with spaces when detecting simple texture lookups.