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

This reverts commit 4138a52ea879cd13c5c453f1dcec672fe547e242.
[cmake] use CMAKE_CURRENT_LIST_FILE instead of CMAKE_CURRENT_LIST_DIR in order to support old cmake versions