added checks for ubuntu only and also special case for ubuntu 13.10