Update s3cmd.sh with code unification