Fix so invalid command is printed out when comment or eol