Move all mode handling into save_all

I lifted this from RT #67079
Bump to dev version
add dirskip option

Modified from path in RT #67079