[RDY] Fix unit test cleanup of path_shorten_fname_if_possible.

Currently the cleanup of `path_shorten_fname_if_possible` fails and leaves the empty directory `ut_directory` in the root of the project, because `after_each` assumes that each test enters the named directory, which is not true for the last test.