Extended Popen_override to account for usage in check_output

Signed-off-by: Stefan Marr <git@stefan-marr.de>