fixing some bad logic in app starting
Merge branch 'master' of github.com:designcreateplay/NodeBB