Fix bugs caused by git and version modules promise chain implementations