fix a possible printf(NULL) when -debug is used

I didn't consider the fact that input/outputFileName[i] could be NULL (which it is if a blank file is to be inserted).
Also change some tabs to spaces (so the format matches that of the rest of the file)