No longer using basename for in CAssetManager::generatePath, fixes #2963

CAssetManager::generatePath now uses dirname instead of basename when $hashByName=true.


See discussion at https://github.com/yiisoft/yii/issues/2963