Fixed a couple bugs in the VBA macros extraction code

This pull request fixes two bugs in the VBA macros extraction code:
- an infinite loop when an output file already exists
- a typo in a value checked in the PROJECTHELPFILEPATH Record

I also slightly improved the logging output.