Fix call to basename.