An alternative pathway for reduced folate biosynthesis in bacteria and halophilic archaea