Fix for *BSD related detect_disk issue.