Correctly create commit directory when built on OS X