Is it /etc/issue or /etc/issue.net?

To be more accurate can you use tolower($1) == 'ubuntu'

Also /etc/issue needs a centos comparison too