__DIR__ was only available on version 5.3 of PHP avoid using this constant
Merge pull request #36 from valeriosouza/avoid_DIR_usage

Avoid using __DIR__