Fix crash when dest dir doesn't exist yet