filter-branch: always export GIT_DIR if it is set