Fixed cookbook version checking on Windows

Cookbook was creating incorrect path to nodejs.exe on 64bit versions of Windows under 32bit ruby and wasn't correctly escaping a path with spaces.

Added ChefSpec tests to the helper class and refactored to allow for testing.