Split implementation and executable script for make_pathset
Swith argument parsing to argparse