build scripts update: replaced some hardcoded repository names with a variable so it will work the same on git and hg. Expecting no effects here but it will minimise the differences between trunk and older branches.