Resolved deprecation warnings of Guard 2.0 

Upgraded to Guard 2.0 version following the guideline described at https://github.com/guard/guard/wiki/Upgrading-to-Guard-2.0#changes-in-guardguard