Recursively mkdir to create /attachments directory on first try.