Fixed checkout to take a name instead of a commit