I <really> tried but failed. Use a TPath to normalize the path,
since realpath() fails if the directory does not exist (at least, it
seems so)