Fixed bug in context.temp when the require base dir was not the current dir.