Some minor improvements to the way our file manager checks files.