cmake: configure.sh wrapper: Fixes for sh.