Revert "Remove test for old chmod behavior during staging"

This reverts commit eada723d142e2a8bbcd34d5bf367d415fdb7747b.
Revert "Do not chmod app bits since CC is doing that now"

This reverts commit c91e59350ab865ec74114c435fd20638cffdd297.