Clean up the extension build script
Merge pull request #1821 from hypothesis/tidy-extension-script

Clean up the extension build script