Updated build script to only require its execution to run swig, compile, link and cleanup