Dynamically obtain the maximum possible value for local file descriptors
Added debugging information