Corrected small bug in creation of cache directories.