Fix empty commit message error on MacOS

Fix #64.