Update package.json
update way of checking empty directory