chroot test: Check whether this is a Mac before calling stat