Optimization and bug fix

Optimization - The log file is in the same directory as the helper class, so we can reference it using `dirname(__FILE__);` instead of needing a version conditional and writing the full file path

Bug fix - Using `$url_parsed[host]` causes a `PHP Notice:  Use of undefined constant host - assumed 'host'` message
Merge pull request #1 from mbabker/patch-1

Optimization and bug fix. Thanks @mbabker !