Fix directory mode number.