basename fix