update to set proper mode "values" for $types of FILE or DIR

(ie 0000644/0000755, etc)