fixing issue with changing file names in local directory