[CHEF-4885] Don't define illegally named methods called :windows_8.1?
Added rspec test to check dynamic legit method name
CHEF-4885: Refactor to add more tests, workaround for Win 8.1 API change