core: error earlier if adding a path that doesn't exist