more tr portability test script fixes