Fix #225

Be a bit more patient before checking the cache cleanup.

Signed-off-by: Clement Escoffier <clement.escoffier@gmail.com>