Added null check for tags in format_message and made temp_directory configurable

This PR contains 2 changes to the s3-output plugin. First, the s3-output plugin expected tags to always be present in the event when formatting a message -- added null check. I also made the temp_directory location that is used by the plugin configurable -- to change this previously, the ruby code needed to be modified