Add comments explaining the reason for the code changes.
Replace platform specific isAbsolute check with a common implementation with the tradeoff that it doesn't handle specific cases.
Fix dev mode check for Windows
Replace tilda with explicit home path reference to be compatible with Windows.
Replace static fallback folder which could be invalid in certain contexts with an invalid folder name which will cause errors when being used. The invalid name will hint the user at the potential problem.
Rewrite the .ps1 launcher script in windows batch script since powershell can't execute file scripts out of the box.
Reduce memory requirements to values which can be run in 32 bit Java on Windows.