WP-4780 Changed the existing path check to use the correct path