Modify \yii\helpers\BaseFileHelper::createDirectory