[BUGFIX] Improve Windows support for functional tests