better uncrustify for foreach
create mac dmg only when app_bundle is specified
Include the deploy commands for all test projects.

This is mandatory on Windows to get the Qt dlls copied in
the folders where the test executables are created, so that they
can be run. Note that when the dlls are not copied, Windows
fails to start the executable and displays a meaningless message...