Fix some old PHP syntax & harcoded paths