Fix the generator

Since the change from JSON to YML, this generator is broken. Update the code to make it work.
Also use Rails.root.join(..) instead of docs_path = "string"
Merge pull request #494 from alphagov/fix-generator

Fix the generator