Make script and scripttools autodetect, like webkit