Fix -l for output files with no extension.