fix copy paste to work on moving directories