fix getting modules from scandir to Yii::app()->getModules()

get modules from application instance instead of scandir. It works now with modules in non standard locations.