lib-php: prefer .plan from filesystem