Made sure old directory is restored