Press escape key to hide popup dialog. Fix some bug in build.php