Fix checking if the build root exists