Re-use the same parsing in local build command.

So that it's possible to copy/paste github URLs also when using the
pginstall build command.