auto detect external script, and support defines which combine in 1 script