prevent sed error, closes issue #2
clear rebase status after gerrit-cherry-pick complete

fix for git 1.8, may introduce bugs on other versions
Merge fix Issue #2 from nouse