Replacing __DIR__ constant to be php 5.2 friendly