productbuild: needs to escape pkg component url references
Currently a pkg-ref is generated in Contents/distribution.dist which looks like the following if there are spaces in the main installer package name.
file:./Contents/Packages/Name With Spaces -component.pkg"
This causes the build to fail.
Escaping the spaces fixes the problem: