changed scripts to support solaris, hpux, windows