enable copy_from_github to copy files recursively

when given path is a directory