use ninja if exist when building with build.sh