Regular expression to capture error output of cmd