declare access to $civicrm_root global

Fixes an issue reported on the forum: http://forum.civicrm.org/index.php/topic,31950.0