Fixed GIT file permissions.
Disabled certain tests on Windows if Jenkins < 1.520.

There is a bug in Jenkins that will always fail the test due to files
being locked when they shouldn't be.

See: https://issues.jenkins-ci.org/browse/JENKINS-18259