Fix commit line parsing

This fixes #350 for me.