Drop unneeded external dependency on basename