dirname not basename