Trying to fix node v 0.10* issue with path.resolve string error