Added fd(1) descriptor type detection.