Fix BUGS in constructBuildName