Update git filter to a more generic script

This will be useful when updating some commit history with correct author
and committer data. Up to now it was necessary to update those field values
manually in the script.