Ignore outfile check when `-c`(check syntax only) flag is enabled.
Merge pull request #2367 from take-cheeze/ignore_outfile

Ignore outfile check when `-c`(check syntax only) flag is enabled.