Hacky-fix vcsrepo issue where it will always get into detached HEAD state with new commits

The fix: using an exec, delete the directories the repos are in, but only if the head is detached, right before pulling the repo.
Merge pull request #7 from NMTCC/vcsrepofix

Hacky-fix vcsrepo issue where it will always get into detached HEAD state with new commits