Add missing detect script