backend: env uses pattern matching to mimic recursion
Merge pull request #147 from kelseyhightower/get_all_envs

backend: env uses pattern matching to mimic recursion