Wrong existant directory check has been fixed