Properly build the swig exception file even if the headers are missing

During build if the headers are not installed in the system path, the
generated swig exception (.i) file might be empty.
2 files changed