fixed rarely crash of build command
refactored integration script
Merge remote-tracking branch 'origin/master'