Fix minor typos/bugs preventing S3 upload from working.