It appear that xbmc Manifest has an entry for "core" which, evidently, doesn't exist in the tree. I found this using a little script of mine, it's not the first time this script finds this kind of "issue", see bug 323201.
your script shouldnt be necessary in the first place. Bug 299982 really needs to be fixed already. manifest rebuilt while fixing another bug