try setting preference for /bin/sh in configure call