Fix perms on upload; refactor Makefile.

We should perhaps be using s3cmd sync instead.