Fix config

It includes changes in the email configuration to load it from env_var.
It also updated deployment script to grant write permissions to files folder.