fixed to allow value arrays.

This will fix two things.

1.  It now works with value arrays correctly
2.  If you have multiple setenv::entry statements, they are put on a new line in the setenv file.