Make json and nokogiri dependencies a litte more lenient