The -p option is nonstandard and isn't supported by dash, the /bin/sh on Debian, so the check failed on Debian.