Fixed bug in saving environment files where forbidden vars list was being ignored.