validate xpi: Fix directory navigation