Support Ubuntu 12

Ubuntu 12 uses a different file to store local locales in. This update checks to see if you're running Ubuntu 12, and does the right thing if you are.

I've also added a template, instead of appending to the locale file every time chef is run.
Template changes now notify locale-gen to run, so subsequent chef runs will not trigger any work if nothing has changed.