Improved error output when executing script outside sugarcrm code base