Use the same code that is used for figuring out a good directory for adding new files. Task-Nr: QTCREATORBUG-2682