Changed to ksh for AIX bos compatablity