Updated Thorfile to create sync directory if it doesn't exist