dirname, not basename