Use internal jdk API instead of parsing JVM properties where appropriate in jpackage tests
------------- Commit messages: - 8343396: Use OperatingSystem, Architecture, and OSVersion in jpackage tests Changes: https://git.openjdk.org/jdk/pull/21940/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=21940&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8343396 Stats: 8 lines in 2 files changed: 2 ins; 2 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/21940.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/21940/head:pull/21940 PR: https://git.openjdk.org/jdk/pull/21940