fix the code to support mac
Merge pull request #6 from clevertension/master

fix the code to support mac