Sometimes files in the stacktrace are not from spack. Remove these files before finding the spack root.