removed deprecated message for ereg_replace in Director.php

removed deprecated message for ereg_replace in PHP 5.3, whoch drives your logfile