[#1164] Updated the build script