Small cleanup.
Added support to load template from userdir directrory.