Use Palimpsest::Utils.copy_directory in Component.