correct dir.c

setup_standard_excludes():
optimize basename extraction and reuse 'worktree' 
instead of calling get_git_work_tree() twice