fixed node 0.6 compat and added globally installed gear check
fixed node 0.6 compat and added globally installed gear check