Ensure the return value of configure_base_dir is a Pathname