Added elif statement to handle things under Ubuntu.