fix setup.sh
some fixes for /bin/sh