Clean at pull time not built time

If we clean at built time, we don't necessarily have the
latest branch checkout out, so we might first clean
unnecessarily and then fail to clean when the latest
version has been pulled.