Partially revert 'Fix permissions in packages'

Review 2081 by @larkost