make minimize.sh work on solaris