Set umask and environment

Closes #18