Set working directory of x264 to TEMP path to workaround x264's behavior of trying to create files (such as the OpenCL kernel) in the current working directory. By default, the working directory will be the x264 installation directory, which, of course, isn't writable on modern OS. This can lead to error messages. By setting the working directory explicitly to TEMP (which should always be writable) we avoid that.
Fixed VapourSynth registry path for Non-WOW64 (i.e. 32-Bit) versions of Windows. Previous path was assuming Registry Redirection, which is only used under WOW64, but not on native 32-Bit systems.