Fixed bug where run-dependent environment variables were saved to file.