Update c2d for latest `std.path`.

Remove usage of deprecated and removed functions:
* replace `getExt` with `extension` and correct
* replace `basename` with `baseName`
* replace `dirname` with `dirName`
* replace `fnmatch` with `globMatch`