fixed on_change trigger of pkg resource, if called with a new package installation