Improve automatic repo detection if first fails

If detection fails the first time, we now try again with
a longer timeout and a smaller file.
Implement "dry run"

Currently this is useful for automatic repository detection.