Fixed issue where there was an error when there was a file with no extension.