fixed fs.dirname()

when dirname(path) === path, now it returns '.'