Added missing $config['tempdir'] and Directory Separator