Revert "try basename"

This reverts commit 1e98ebccf184baacd15ac0674af1be37e9008199.