remove usage of __DIR__, not compatible with php 5.2
Merge pull request #103 from vivid-planet/5.2-compatibility

remove usage of __DIR__, not compatible with php 5.2