Aligning permissions and tar extraction logic to match default.rb