added platform helper with 'which' method
added a check for 'env' command before using it. needed for windows support
Merge pull request #250 from jruby/fix_249

Fixes #249