CMake: Save all files before running cmake wizard

Task-number: QTCREATORBUG-9537

Change-Id: Ie5e4ffd33a9a9108c2e12bf8e71d932f6586053c
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Qt4RunConfigurationFactory: Simplfy code

Change-Id: I4ed28ef19d5799e1e2818752b3bd169984d6f9ad
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>