use a better way of telling if a module is not there (seems that the old way didn't work on older version of node).