Small updated due to depreciation

I found your version of this module, but I do not know its relation to the current one on (meta)cpan. In any case its version number is lower than that on CPAN, yet its release date is later...

However: I updated your code with some changes due to depreciations in the Moose code. Hope it helps.