final bugfixes for npm publish on all platforms