Fix for reading template name from options.

Previously it was always using base.html
Handle missing plugin folder
Added a test for options reading