copyDependencyToDir function

Copy an HTML dependency to a directory