Create chkdirs.c