[#478] Improves build process

* Fails when Dashboard build fails
* Move the version calculation after rebuilding the Dashboard code