Add bin/detect script