Delete when in cwd from updir, not rootdir

Patch suggested by Craig A. Berry.  Fixes test failures on VMS.