run of 'puppet resource alternative_entry' fails

Problem is there is no @resource when running puppet resource alternative_entry from a CLI. Puppet then doesn't know about resources but only inspects local system. This solves the issue for both cases (resource or system inspection).
Merge pull request #6 from jsosic/patch-2

run of 'puppet resource alternative_entry' fails