Fix rendering of relative path template-files

Arbitrary template files with a relative destination path were not being
rendered via the web interface.  This bug also created directories in
the web root when write_files=False.  This fix adds an additional check
for the write_files boolean to correct the above behavior.
Merge pull request #694 from jjneely/relative-template-files

Fix rendering of relative path template-files