change generate_swig.py in order to adapt to *nix env.