Remove old templating chunk
Fix resourcePath and resourcePathName variables