Fix a cygwin/python bug in installgithooks