Fix for Reflog support breaks creating commits with >1 line messages

Fixes #408