fix run mode check
Merge pull request #44 in CHSBNDL/chaosframework from fix_run_mode to development

* commit 'd7e72429e60f5c891aaa3478c0a97ed252280fae':
  fix run mode check