TPath: Return an error if realpath() fails