Fix clean command: by passing $build object.