You should probably be using your new get_root_path() function.