Copies files from source directory appropriately.