build script fix for ubuntu