Changed some bin files to make it work with heroku