Generic Project: Follow directory symlinks

But only up to 5

Task-number: QTCREATORBUG-8897
Change-Id: Ide286729689a3d780a04aed03fcc3383261b0d02
Reviewed-by: Pawel Faron <pawelfaron87@wp.pl>
Reviewed-by: Daniel Teske <daniel.teske@digia.com>