necessary changes to make dupro work on HP-UX - ksh posix compliant