Fix unit test cleanup of path_shorten_fname_if_possible.