[Build] Fixed problem in the build shell scripts