Add switch statement for Ubuntu 12.04/13.04/13.10.