Fixed bug for VCAP support.
Added NODE_ENV=heroku support.