fixed paths in protobuf generation script

Signed-off-by: Stephan Hagemann <stephan@pivotallabs.com>
Add support for space id

[#51987873]

Signed-off-by: Stephan Hagemann <stephan@pivotallabs.com>