Delete and recreate temp folder after every iteration such that
when running the full mirror the temp folder never contains more than
40 packages and cannot run out of memory

Also, using SemanticVersion to compare versions instead of strings