fix build-twister.sh on mac