Fix P4#set_env unit test
Unit test incorrectly checked if the platform is Linux and skipped
part of the test if it was. So, this part of the test was still
running on platforms that do not support P4#set_env and would raise
an (expected) exception during the unit test.
Now it checks if the platform is Windows or Darwin, and if it is
it runs the registry setting test.