Updated code enabling Bourne-compatibility in test scripts.