Simplified/unified preprocessCommandLine method for su/sudo connections.