Path corrections for packaging java on Windows

Fix a handful of little issues that prevented packages from being created with Java bindings on Windows. The branch was created from b7cde43a847acf54f18a0d971156e0d83e9e6857