[Bug 218882] texcad-2.4-1040: the `getwd' function is dangerous and should not be used.