3 bug fixes

- wrong path for data directory
- create directory to write to if needed
- fixup message so it sends attachment