Rewrite TWFunc::Exec_Cmd() to use pipe() instead of popen()

* popen causes crashes on some devices