CB-5660 use enabledelayedexpansion to handle )s in path

Refactoring file finding to a separate script which is mostly only used on WinXP
- it also needs to be copied by create.js

Avoid using %~...s in favor of relying on quotes