Make root_path constructor argument for better testing.