Why is this wrapped in `path.Dir` twice?