Set permissions attributes to directories - refs BT#9041