Add directory cleaning to failed platform get/git clone, fixes #18