Fix plugins for multi app setup

This fixes issues with multi app setups like Yii Boilerplate where the Smarty.plugins folder may not be in the application.extensions folder