fnamemodify() from Vim for Node