Refactored VapourSynth detection code into a separate thread, similar to Avisynth.