Fix permissions on upload directory and .htaccess