a slightly less broken getpathstring() for dos unit. yes, sadly this code is still in use on MorphOS, sysutils wraps to it

git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@26831 3ad0048d-3df7-0310-abae-a5850022a9f2