Added cross-platform getTmpFolder() function in Util.