HOSTDEV-1203 makedirs fix