use strlcpy/strlcat when dealing with paths in extractfuncs