Make build and test scripts back-work on Linux and Mac