Updating references to smarty directory.
Fix for UnexpectedValueException on PHP >= 5.3 Given the value they pass it's totally expected exception ;-)

Not sure if this is a suitable fix for upstream, as I've no idea why they let it stand this long, but it will be fine for us and allow deleting the compiled templates.
Merge remote-tracking branch 'origin/dev-smarty' into dev
merged dev-smarty