Fixes to createChacheFolder() and createSmartyCache() functions in corecmd