update up script

Use the POSIX standard