Invoke tasks: automatically detect Heroku

For https://github.com/gittip/building.gittip.com/issues/75