Revert "always clear tmp folder and init fresh repo"

This reverts commit 897e5482b10ae033e99c11dc5a36d4e55d7ef40b.
check remoteUrl of repository in tmpDir