# Try to delete this hook first, because it could be currently running.
# The file stays around till the last file descriptor is freed.
rm -f "$TARGET_HOOK" >/dev/null 2>&1
On Windows it might not (cannot delete open files...) resulting in the same behavior which did not make problems so far on windows.
Some small bugfix. Thx for merging.
This will work for sure on UNIX.
On Windows it might not (cannot delete open files...) resulting in the same behavior which did not make problems so far on windows.