Set permissions for new files and directories - refs BT#9041