Correctly set ulimit