Fix for APLO-312: Apollo fails to bumb up the ulimit!

- We now do a binary search for the max allowed ulimit bump in case the default is too high.
Fix some bugs that were generating error messages in the tests.
Lets simplify things related to APLO-324