Update the reference to common-lib

* Disable ~ as a valid project name
* Update platform command
* Fix broken "build --companion" for nativescript projects