Added check to only use Buffer if groan is running in node.js