Fix for #856, meta data files not being saved in the same place as log files
fix for #857, auto-appending of .json to filename exported table data if it is not already there