dirname not basename.