Auto install CMake for Ubuntu and ArchLinux.

Auto detect the distro for Archlinux and Ubuntu (both have been tested) to install CMake via pacman and apt-get respectively.
Maybe can add some else distro?