updated max_files to return default max files if the system limit cannot be determined