Fix s3 to work no on heroku