Adds option to tools for specifying output directory.