fix get root path of gopkg.in, add revision api