Fix downloadSrcFromGit function of return argument