Updated to set resource limits for number of open files at startup, if possible