Use GList instead of arrays for paths search