[fix] basename to dir