Fixed access denied errors in OSX
Merge pull request #2 from fatiherikli/master

Fixed access denied errors in OSX