util: when we use path_strv_canonicalize() we must allocate the strv from the heap