tidy code
use SCMRevision instead of SVNRevision
use TMPDIR to set TMP value