fix(app.js): changed the handling for env.host

When no hostname is explicitly set in the environment variable the app.list function will be called without the hostname
This was a problem with heroku