[PATCH 6/6] libxl: Add helper function for running the hook script