Added save function for exporting environment variables.