Reinstate the old behaviour when GIT_DIR is set and GIT_WORK_TREE is unset