Fix File::GetDir() Exception