added output dir cli arg to mbp-gather and improved cli arg processing