aoe: remove custom implementation of kbasename()