changes dir mode back to octal value

fixes foodcritic warning