updated detect, to listen for a heroku.cfg file