Fixed the WriteEnv usage and updated to allow for sudo if necessary.
Uses the configuration options of: Token (the user's Modulus API token) and project (the project to deploy to).