Fixing temp dir issue with tomcat