fix rebuilding everything on switching build path