configure script: also delete the cmake cache

This replicates the autotools behavior and was suggested by Roland
Kaufmann.