Make ulimit checks more resilient to OS oddities, and improve error message