Bugfix: Patch to correctly load ~/.cortexrc

Previously loading of the .cortexrc file didn't quite go as planned,
this patch not only enables correct use of the cortexrc file, but also
enables the use of environment vars and the ~/ convention for all file
open paths.
Improvement: arg count hardening

Add serious argument count checking, with incorrect invocations
resulting in the help pring. This should keep total monkeys from
knocking over the Cortex program.