Refactor folder permissions

Refactor of folder permissions for receipt file uploads, in an attempt
to eliminate some obscure bugs, and increase performance.