remove duplicated code used for phpbrew shell integration #286