better message

(because I was always fooled by this cleaning error message displayed BEFORE the real error!)
Clean working directory only when error during cloning (and not init branches)
refactoring
Merge pull request #470 from pmiossec/better_handle_error_cloning_branches

Better handle error cloning branches