SI-4615 Adds proper handling of -D and -J options Windows

On Windows, -D and -J parameters weren't being added to JAVA_OPTS.

I've manually verified this patch on a Windows 7 VM, but we don't seem to have a way to run an automated test of the scala or scalac scripts.

review @adriaanm