use readEnvironment with jgit

so that GIT_DIR and GIT_WORK_TREE env vars are honored if set