Fix issues #99 and #100: The stat command in OSX 10.9 has no parameter named --format