Update Environment.php - fix the path resolution for Texy

Hi,

I have fixed the path resolution for Texy.

Please review it and and accept if all is looking good. I am sure about the changes for Pear and Composer part but not really about the composer one. I just followed the convention.

Regards,