Adding support for S3 region/endpoint configuration

Closes #16
Changing the embedded working dir string

so that the generated usage doesn't contain local path crap
Merge pull request #43 from travis-ci/s3-endpoint-configuration

Adding support for S3 region/endpoint configuration