build script: fixed update-locale bug