Adds a patcher for supporting __FILE__ & __DIR__ magic constants.