chroot test: Check whether this is a Mac before calling stat
Merge remote-tracking branch 'origin/master' into mac