Issue #23 - Writing out on first run

Only write out on first run if directory is missing and attach is set -
otherwise don't