cpu.c: get_output_file: handle input file names without extension