Add more verbose output and use protoc option for input path. Also refactor system call to a single one for c++, python and java.