cbuild: login to registry before inspecting images
When using the template on a private gitlab.com repo distro_exists() is failing because the script is not authorized to inspect the image, skopeo failing with: Requesting bear token: invalid status code from registry 403 (Forbidden)
Login to the registry before checking if the image already exist fix it.