Replace exec with puppetlabs vcsrepo
Remove dead code