Fix successful build detection