Add support --base-dir argument