What's the point of copying here? Can we just change it to ```rettv->vval.v_string = cwd;``` and remove ```free(cwd);``` at the end? Or even do all the work without temporal ```cwd```.