Fix ivory script to be /bin/sh friendly
Hack cli test setup script to fix ivory script for /bin/sh