discover/boot: Copy local paths before running boot hooks