Common build process for JS/shell libs