apply hostname changes immediately rather than at the end of chef run

Currently if the hostname is changed the changes are caught by Chef only in the delayed notification phase thus affecting nothing.

This commit should fix the issue.