Fixed for ubuntu 12.04 and git 1.7