Fixes to try to better support AIX 6.1's broken shell
Fixes for AIX 6.1