Reverted short circuit in build_repo.sh and added a method to os1_utils to wait for a list of snapshots become active