Bug fixes at corecmd::createCacheFolder()