improve build.sh and bump EAP version