make this check work right on Illumos