simplified and fixed resolveAssetPath so it works when Yii::app()->baseUrl
is empty (which is often the case)