Setup environment in dev script.
Fix email headers.