remote: avoid reading $GIT_DIR config in non-repo