Add a function "fetchdir"

This function copies the source directory for building.
This is useful if the source is stored in plain directory, not stored in
archive form.

This is implemented similar to fetchfile.