cppcheck Popen usage improvements (stderr issues)