Added check for directory existance before trying to copy.