Fixed fs.path returning double slash for elements in root.