ulimit causes error in scripts