Added packages and corrected tmp permissions