fix wrong paths in scripts, add timeout to prime cache