Updated environment variable processing.

Environment variables are now added as a JSON array regardless of the recipe (fuel or php).