Fix project lookup for instances where the same project is loaded twice
Also pause build if the parent project is building