Improved automatic deployment to S3

Now only the necessary files are uploaded to S3 instead of the entire project.