Make try_conf_path() static.
Make check_dir() static.