Fixed heroku maintenance script