Fixed shell detection in automake/autoconf.