batch: added argument --output-reference to specify name of created ref. file