Adding a retries to package resolution - fixes issue #182