fix custom build rule for proto file