Added check to source and dest entries to make sure the directories exist before starting the copy.