fixed string comparison in wrapper shell scripts

bug is specific to real /bin/sh, not to bash shell