rename buildDir to tempDir
CS