Fix for exception error when null options are passed

Also updated package.json to be platform independent