Debugging improvements and help fix

- Added a log file to record which tests fail
- Display the unknown option with error message
- Fix help message -d instead of -p for path (p for patch d for
  directory)
Pile of tweaks to build-cov.sh