simple bugfix
Improved --target specification and batch handling.