CB-5816 forgot to rename a function in lib/build.js