remote helpers: avoid blind fall-back to ".git" when setting GIT_DIR