scrutinizer-ci/ocular — pull request #4 by hkdobrev (2014-01-27 21:21:33+00:00)
Title: Use working dir instead of file dir

`__DIR__` is the directory of the current file. If you run this file like that:
``` shell
composer require scrutinizer/ocular:~1.0.0
vendor/bin/ocular code-coverage:upload .....
```

It would not find the `autoload.php` file of Composer. This is because Composer symlinks `bin/ocular` to `vendor/bin/ocular`. This messes up with the path to `autoload.php`.

---

I don't thinks this would be a perfect solution, this is just how I got it work. If this would screw up some other workflow, please let me know. I guess you have not considered this use case.