Fix issue where module doesn't work on newer version of Node