Fix inventory so this won't happen and fix DataLoader so that it will test relative paths relative to self._basedir Fixes #11789