Update build_all.d

Improve release versioning and dynamically detect previous DMD release.