Configurator does not copy image and throws and error if destination folder do not exists

Like we are trying to place image into pub/media/wysiwyg/icons, and icons does not eixsts
Easy fix is to manually create "icons" dir
Need to implement smth like this in file Component/Media.php:138
if (!is_dir('upload/promotions/' . $month)) {
// dir doesn't exist, make it
mkdir('upload/promotions/' . $month);
}
file_put_contents('upload/promotions/' . $month . '/' . $image, $contents_data);