Some fixes.

Fixed crash if link to chapter doesn't contain '_ch' substring.
Improved/fixed parsing of arguments to -c option.