Rename cache_this => hash_this
Fix checks to resolve ref to tree
Tidyup - checkout + build only for a definition that has a repo