Added some backup code to get rid of same directory backups