add preinstall script so using github url for npm version works