Adds name and versions on the commandline.

The name and version are used to display proctitles. If name is
omitted, the module name is used to be backwards compatible.

If version is omitted, the last part of basepath is used to be
backwards compatible.