Fixed issues with generated SConstruct file