PHP path bug fix