Fix broken "build --companion" for nativescript projects