Added code to determine if app deployed to Heroku