support "-c" to specify ccnet dir