remove usage of __DIR__, not compatible with php 5.2