make chenv work both linux and mac