added supoort for ubuntu 10.04 and 12.04