get the correct path_key from the ENV on win