Changed temporary folder creation to avoid platform path issues (see http://rationalpi.wordpress.com/2007/01/26/javaiotmpdir-inconsitency/)