Fix the node version check

Previous approach was comparing strings, so for example version
"v0.8.11" was treated as earlier than "v0.8.6" and build process was
terminated.