Potential fix for module permission issue (under OSX?).
Merge pull request #1113 from immortius/develop

Potential fix for module permission issue (under OSX?).