Update checkForGitbook.R

npm test via system() returns 1, not only zero. Although, npm is installed and works fine on Mac OS X 10.8.5