Replace linux-specific code in test scripts.