Prevent copying a directory into itself. 

Links to AvianFlu/ncp#4