Fixed permission issue of temporary uploads directory (issue #22).