buildman: Write the environment out to an 'env' file