Make sure that (project root) is the first path
(cherry picked from commit 9c183333b7b8835964883a9aada48ff1545acac8)