From time to time, buildbots may go red because the build directory
contains some bad intermediate state. For example, the CMakeCache.txt
file may be stale. Before this change, the only way to fix such a bot
was to contact the admin and wait for them to fix it. Now, users can
manually request clean builds without the help of a buildbot admin.
Also, clean the installation directories if we're doing a clean build.
Otherwise our packages uploaded to GCS may contain stale resource
directories or old executables that have been renamed.
Maybe using RemoveDirectory is more compatible? This command wouldn't work well on Windows targets.