Corrected command line flag checks.