Update get_template to return just the template.

Returning the path also is unnecessary since this is part of the
template origin.
Simplified loop.
Simplified another loop.