[JENKINS-21434] Git Client 1.5.0+ does not resolve reference
repositories correctly (anymore)

- Check for existance of objects directory in reference dir.
- handle bare reference repositories
- replace backslashes with slashes for windows systems
Merge pull request #74 from pauxus/reference-fix

[JENKINS-21434] Git Client 1.5.0+ does not resolve reference