Define new option key "outputdir" which is used to determine the output file