refactor pull script to allow multiple repository URLs to be tried