Change how listChildren finds children

Now finds all children via looking at the keys in localStorage. Also
gives correct results for if a path is a directory or file.