Method to get Operating System

If there isn’t a way currently, a method to get the current operating system would be incredibly useful.

Use case example:
Running a web test on multiple browsers and operating systems requiring different file path formats. Being able to get the OS would allow for configuring the test to point to the correct file path for that OS.

Currently, I am unable to find a workaround for this, and am having to duplicate tests relying on file locations.

If this is a feature that could be added or there are any workarounds to achieve this, it would be much appreciated.