Made man page metadata script more robust, added json minifying script