Use 'env :userpaths' for 'git'

A workaround for users of perlbrew.

(Also see #17862.)