Improve handling of environment to correctly parse 'unset' and
not choke on invalid lines.

From Andrew Melo
Merge pull request #4869 from bbockelm/crab3_runtime_env

Improve handling of environment variables.