fix for getEnv() error.
Merge pull request #45 from kiy0taka/master

getEnv() does not work in OSX 10.8.2