copy module: cleanup and if directory_mode not set default to umask