Run directory migration if needed