Fix crash on exit

Fixes a crash on exit in ~AnalyzerManager, where
EditorManager::instance() might be already 0.

Change-Id: Ie1d5aa5590d2dd763f5cb8c7e0a8a5e593fd2af6
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Fix paths to deployment.pri, important for templates tests.

Change-Id: Iabcf82b6ea04ba5105767dcc9c9c4e8b272afc18
Reviewed-by: Kai Koehne <kai.koehne@digia.com>