fixing upload_to_s3 to use BASE_DIR