Added check for same destination and source files