Change is_file to exists.Because some distributions have /etc/redhat-release as a symbolic link.