convert gitprep to be a perl script to be used on Windows as well