- Fix include path
- Add hack protection
- check for smarty cache path