Ajuste the output file to correct extension.