New code from lwip project

lwip-contrib repo:
1e04deb makefsdata.c: minimal check if given path is OK