Temp directory fix to avoid unlimited diferent folders being created, the temp dir now is fixed and related to HTTP_HOST