CRM-13897 - Update script not runs under wordpress

http://issues.civicrm.org/jira/browse/CRM-13897
Merge pull request #2139 from dlobo/CRM-13897

CRM-13897 - Upgrade script not runs under wordpress