Made git_repository_open() and git_repository_init() benefit from recently added path prettifying function.