Fixes #4597: `yii\composer\Installer::setPermission()` supports setting permission for both directories and files now (qiangxue)