fixed code to backup to the right directory.