Add command-line switches for output directory and output extension