move and clarify ulimit check

partial fix for #278