Make output dir and regulation version configurable