fix sh-tests for win64

Fix and enable shell script based tests for Win64.