Added base directory configuration option.