Hack around Apple's broken chmod patch

See http://bugs.python.org/issue13315