Fix test scripts portability issues
2 files changed