proper tmp and log dirs