Fix bug: build error when there are more than one git souce directories