fix build for browsers

fixes the script to generate the browser extensions.