replace dirname(__FILE__) by __DIR__

Since PHP 5.3 is now the requirement, we can use the __DIR__ magic constant instead of dirname(__FILE__) for a little extra performance.
Merge pull request #57 from mentalstring/master

Replace `dirname(__FILE__)` by `__DIR__` since PHP 5.3.4 is required