get the correct path_key from the ENV on win

closes #353