Better fix for #5725 since this was also happening in directory and symlink stanzas.
Merge pull request #5727 from chideit/file-mode-none

Better fix for #5725 since this was also happening in directory and symlink stanzas.