Fix build script for deploying repos to use correct url #1250