fix commit line parsing

fixes #350