allow data_dir to be set at run time, not just via env var