Don't rely on /etc/issue ... maybe python (from PHP :D)