resolves #18 Add base_dir command line option