Revert "[script] ..why detect gtk twice"

This reverts commit 4138a52ea879cd13c5c453f1dcec672fe547e242.