[installer][target] Cleanup

Cleanup:
* Some {}
* Deleting pointers
* Use QDir mkdir
* Add default return var