fix problems in TdsPathUtil