Fixes spec tests for env on Ruby 1.8