* [core]: use dynamic path strings

do'nt rely on entry[k]->d_name as it can be empty on win

remove link cruft

the assert can not be reached any more, remove?