Detecting ulimit problem