* Move data directory to a variable, now it is hardcoded in 3 places. * Test if data directory exists, if not then skip saving files and the attachments.