fix template path to work with themes and modules