src/tds/unittests/common.[ch]: Make realpath stuff work properly on Linux