Fix computation of plugin build-time deps
Store and read build-time deps in unipackage buildinfo.json
Use build-time deps in `checkUpToDate`