Tidied up the 'extensions.twig' template. Also fixes #134.