Fix issue with duplicate path when extracting local versions of php.