Where are the options “template” and “current_theme” derived from

You’r right. The template-tag is based on your directory name. Same goes for a child-theme, which has a base theme as parent.

Check out the search_theme_directories() function for more information.