[BUGFIX] Cache directory should always be created if it doesn't exist