Pass --work-tree to git so dirty is correct.