substrate: specify the build dir properly for Windows