Fixed npm publish
Only restart beanstalkd on OS X