Would something in std.path be better suited for this? `root.startsWith(".")` looks very suspicious, what if the source file name starts with ".", or if the path starts with ".."?