Fix windows log hook issues with single/dboule quotes and variable expansion.