Delete project command improvement

Don't offer the option to delete the whole project directory if the
directory contains files from the solution or other projects.
Fixes bug #3798