Fix rmdir specification
cmake: build swig wrappers with GIL unlocking