Fix composer autoload dumping for commands

Fix dump autoload commands for Cache and Session Table Commands.  Similar to #6595.