Moved all packages down under "CommandLine".
Factor out the common prefix function.