Try guess file extension for extensionless files.