prepare_file_creation function

Internal function to prepare for 'BEAST2' creating files