It looks like you don't really need this option because you already have option 'CMD'. I suppose you can just check CMD before calling the reverse_shell_cmd_stager() function.