Fix startcmd.sh SH bug #1432

SH in Ubuntu doesn't support [[ conditions, replace with portable code.