fix path issues on appended files