Added keep dir symlinks parameter