Fixes build script