Cleaned output paths before writing it