Merge pull request #44 in CHSBNDL/chaosframework from fix_run_mode to development

* commit 'd7e72429e60f5c891aaa3478c0a97ed252280fae':
  fix run mode check
binary bson element assertion fails when the data is not yet written, in this case return 0
removed unapproriate -Werror switch from mongo compilation
git -b flag is not compatible with old git <1.7
added the file scanner for the available block for every stage file