Changing temp/cache folder creation
Fixing PHP warning/notices