Use master branches by default
Extract get_nodepool_sources to eliminate dupe
Use git checkout to support tags as well