Remove useless prints.
Remove useless call to get_input_file_name().
Don't use get_input_file_name() for outputs.
Don't call get_input_file_name() with empty argument.
Don't use get_input_file_name() for outputs.
Don't use get_input_file_name() for outputs.
Use full paths to input files.
Don't change the working directory.