Update smarty.inc.php

Use subfolders in cache/compile for each theme to avoid cross-theme template issues.