Fix invalid efree() on null pointer and add help for -x