Add a function to set a non-default work tree