make filepath patch git compatible