Emulator: Added the cmdenv command line option