Place this new helpers in a new source file os-util.[ch], and move the existing and related call path_is_os_tree() to it as well.