main: use data-dir as the path to data directory flag