Fix post_install to capture output and errorlevel correctly