Detect port from env variable, in preparation for Heroku deployment