#390 should use filepath.Dir instead of path.Dir for.