Resolved issues with heroku and S3