Fixed a random bug (cache folder)

Signed-off-by: Julien Bonvarlet <jbonva@gmail.com>