Fixes #4472: allow ncf to support large number of files in it by removing the full paths in the string before spliting