Update basename.c

Plan9 approach