Updated run_m_script for Waf 1.8