provide strndup replacement
cleaning up scanned fs names