Fixed error output from subprocess