Fixed broken version checks, fixed tests.

This is a much more robust method of finding the default (latest) version for the nodewebkit package.
Merge pull request #26 from badsyntax/fix-version-trim

Fixed broken version checks, fixed tests.