I would use the npm hosted plugin and the new reference:
<plugin name="cordova-plugin-inappbrowser" source="npm"/>
also be aware the config,xml files are different between the desktop app solution and Phonegap Build.
<plugin name="cordova-plugin-inappbrowser" />
Some helpful links:
Your solution also works great.