Fixed duplicate methods of CommandExecutor helper

Fixed duplicate methods of CommandExecutor helper: executeCommand and buildAndExecuteCommand