Ensure output directory is created; cleanly handle no package.json
Added http-equiv to force content-type