[LIBS] fix vfs lookup failure for path ending with /.

Signed-off-by: U P C BHARAT <upcbharat@gmail.com>