fix pre-build event for CI