Fixed tmpdirs for Qt4