move creating the temp remoterepo dir

 - in case we are getting a new repository it gets a reset which
   starts from the beginning. So it is better to create that at
   the end.

Change-Id: I6613ce899fd695e6df8825290a7d945a67d61168
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>