Fixed CRM-14593. Patched Smarty to do pattern replacement in a non-depre...

...cated way. Patch based on diff between 4.4 branch and master.

----------------------------------------
* CRM-14593: setup.sh fails due to deprecated use of preg_replace
  https://issues.civicrm.org/jira/browse/CRM-14593