Make set_paths.sh work on x86_64 and arm64.