scripts: fix gdb detection for opensipsctl
(cherry picked from commit 92131a48b6bd7768038b0f1d138fa461163652fa)