removing hardcoding of JAR in regression tests, fixing build issue for Windows