Avoid problems with tmp directory