fixed an infinite loop when source and target are the same folders
[pithos] / gss / jboss /
drwxr-xr-x   ..
drwxr-xr-x - conf
drwxr-xr-x - deploy