target flag should work in scripts

used to only work in tools, now works in scripts too

issue #70