Added checks so it runs on Ubuntu 13.04 (Kernel 3.8).