Fixed template path error and adapted changes to match zikula/core#992