Added a case for when the source and dest paths are the same.