Ubuntu trusty support

I've changed some code in this charm.
Now it can be installed with ubuntu trusty.