import mode validator from directories item to files

since files and symlinks both depend on directories anyway, I don't see any harm in doing this

CC #12
add static dep on dirs to files

CC #12