Revert "Merge pull request #433 from VinceMacBuche/bug_5209/fix_umask"

This reverts commit e0dbfc41c3b13296d04cf316e29055f3a4503ded, reversing
changes made to d46eb6a424004ce7da8cafb0a04fe2dac6bf4d73.