Fix /tmp file vulnerability