respect build exit code in heroku api provider

fixes #209

happy to get feedback as my ruby is rusty and I chose to follow the existing style in this file.  FYI I've tested this manually against a failing build and a successful build.