Fix for the case where the file has no extension