Ensure prev directory exists before moving dev into it