Change in vdsm[master]: hooks: Extract function for command execution