Function to add to environment variable