Fix for amazon S3 deployment from env variables