Changing the way the file extensions are checked for.