fixed build script for e2e test