cd into directory *before* trying to checkout..