get-library-templates: add ability to use HEAD rather than a specific version