fix bug where build_python_module.sh could fail depending on the module
directory given