make "rebuild Project" (C-c C-b r) work again

This fixes "rebuild project" which wasn't working.