Call swig in tmp dir.