Fixed some command output being sent to stdout