allow sub-commands to be loaded from $NODE_PATH

some minor comments and renaming, the code change is 09e075b4e93f65f3c4a359d153f115f2fa496d1c