Adapt test for "" now that we have reverted back to the old behaviour.
Tests for basename(1). From NetbSD with some local changes.