Fixed some logging error handling code
Fix invalid bin path
Now that invalid bin path is gone, no reason for `preferGlobal`
Removing unnecessary test from package.json