Make script more functional, detect some engine build failures