Switch from MAGENTO_ROOT constant to Mage::getBaseDir call for compatibility with n98-magerun