basename.c argument checking added