git: make perl lib path portable on 10.9

Fixes #29128.