Changed TMP directory to tmp and used .htaccess file to prevent directory indexing