added support for empty environment variables

empty environment variables previously created a TypeError

this fixes the issue, by allowing environment variables to be empty (as
the ruby version does)