extract VBA macros: fixed infinite loop when output file already exists