Removed unnecessary file.IsDir fix.