fix up build system for swig (d242c30 introduced a subtle error)