check exit code when protoc version is determined. fixes #10