remove basename compat