output_dir fix

Fixed an issue where tagging wouldn't work when the output_dir option
was set using the SAB script.