Add error throwing if constant isn't found in path.