Fixed stat to use --format instead of --printf to be compatible with coreutils