Update checkUploadsDir.php