Fix filelib:wildcard/2 when 'Cwd' ends with a dot

In such case, filelib:wildcard/2 returned truncated results:

  1> file:set_cwd("/usr/lib/erlang/lib").
  ok
  2> filelib:wildcard("stdlib-*/ebin/*.app", filename:absname(".")).
  ["dlib-2.1/ebin/stdlib.app"]
Merge branch 'capflam/filelib_wildcard_fix' into maint

* capflam/filelib_wildcard_fix:
  Fix filelib:wildcard/2 when 'Cwd' ends with a dot