Add validate step to build scripts.