Fix for determining callback for nodeify.
* Added helper to determine which params is the callback so
  we can pass the callback to nodeify