Fixed copy_directories