Moved basic command line params check to main process.