Adds http to regex on uri_for_repository_path to avoid failing images with trailing slash.