task-build: Use the native APIs instead of forking out to commit
Use the native APIs for checkout as well
task-build: Do less resolving of commits