Configurator: fixed possible mkdir race condition