scons: Fixing build errors with scons 4.0.1 and 4.1.0

SCons failed to find m5 module while loading m5.util.terminal
from site_scons/gem5_scons/

This results in the current version of gem5 stable failed to
build with scons 4.0.1 and 4.1.0.

The nature of the bug and the explaination for the fix can be
found here,


Change-Id: I3817f39ebc3021fb6fc89bcd09a96999f8ca2841
Signed-off-by: Hoa Nguyen <>
Reviewed-by: Bobby R. Bruce <>
Maintainer: Bobby R. Bruce <>
Tested-by: kokoro <>
2 files changed