filter-branch: fix behaviour of '-k'