Improve bash portability.