Fixed two bugs in the swig version detection in autoconf