Fix ./configure not to fail on non-bash

Thanks to jayne for patch
Fix modperl build on MacOS X

.so is not the right extension for shared objects there