Here, we ensure that build_dir is empty by removing it and recreating it.