Maybe do `folders.map(path.basename)` and then we can follow @isaacs advice?