handle package.json (fix #25)