Change from ptest to crm_simulate command for getting cluster state.
Support Systemd and Upstart.