Fix profile/project detection in searchlist