fix deploy script for email env variable