Backport improved version of the shears from the Git for Windows SDK

The script was improved there, and for the moment, let's just get the
goodness back into msysGit, too, as long as we cannot make the final
jump to Git for Windows' SDK.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>