fix #25

used to crash when running node\test\simple\test-regress-GH-3739.js
Merge pull request #26 from refack/fix-GH25

A call to PathAppend was failing when the path length exceeded MAX_PATH. Added return value check. Fixes #25.