DASCTEST-283 Set permissions correctly when creating parent directories