Make sure file is a regular file when reading config files.