No DOSS_HOME env throws commandlinexception, and main function handles them properly now.