Fix for process expansion off the main thread in syntax highlighting
(#1143)