Fixed debug issue on invalid debug setting. Fixed show-config bug. Added -start-dir