Make `move_dir()` atomic again

Again thanks for your review. I created PR spotify/luigi#405